package test;

import java.util.List;

import org.com.f4.jdbcdao.WineDaoImpl;
import org.com.f4.model.Page;
import org.com.f4.po.Wineproduct;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;





public class test {
	ApplicationContext ac;

	@Before
	public void setup() {
		ac = new ClassPathXmlApplicationContext("Spring-dao.xml");

	}

	@Test
	public void testfindUser() throws Exception {
		WineDaoImpl Um = (WineDaoImpl) ac.getBean("wineDaoImpl");
		Page page=new Page();
		page.setPageNum(0);
		page.setPageSize(4);
	
	page =Um.findWineproduct(page);
     
		System.out.println(page);
		
		

	}

}
